#include <iostream>
#include <string>

using namespace std;

int count[26] = {1,2,3, 1,2,3 ,1,2,3, 1,2,3, 1,2,3, 1,2,3,4, 1,2,3, 1,2,3,4};

int main()
{
	int n = 0;
	string s;
	getline(cin,s);
	for(char ch: s)
	{
		if(ch == ' ')
		n += 1;
		else
		n += count[ch - 'a'];
	}
	cout << n <<endl;
	
	return 0;
}
 
